﻿@using BlazorCommunity.DTO.Admin
@inherits NewRoleBase

    <BForm Style="width:100%;" @ref="roleForm" Value="model" LabelAlign="@LabelAlign.Right">
        <BFormItem TValue="string" Label="Id" Name="@nameof(RoleDisplayDto.Id)" IsHidden="@(EntryOperation==BlazorCommunity.Admin.Enum. EntryOperation.Add)">
            <BInput TValue="string" IsDisabled="true"></BInput>
        </BFormItem>

        <BFormItem TValue="string" Label="角色名称" Name="@nameof(RoleDisplayDto.Name)" IsRequired="true">
            <BInput IsClearable="true" TValue="string"></BInput>
        </BFormItem>

        <BFormItem TValue="object" Style="text-align:center;margin:0 auto;">
            <BButton Type="@ButtonType.Primary" IsPlain="true" OnClick="e=>Save()" Style="text-align:center;width:100px;">保存</BButton>
            <BButton Type="@ButtonType.Default" IsPlain="true" OnClick="e=>roleForm.Reset()" Style="text-align:center;width:100px;">重置</BButton>
        </BFormItem>
    </BForm>